<template>
  <div class="name" :style="{ background: data.colorPair }">
    <!-- <div class="colorBar" :style="{ background: data.colorPair.dark }" />
    <div class="type">{{ data.type }}</div> -->
    <!-- <div>{{ JSON.stringify(data) }}</div> -->
    <Poptip trigger="hover" :transfer="true">
      <div class="carId">{{ data.id }} {{ data.meetingName }}【共享】</div>
      <div slot="content" class="poptipCon">
        <p style="font-size: 16px; font-weight: bold">测试会议室</p>
        <div style="margin: 10px 0">
          <Tag type="border">高级会议室</Tag>
          <Tag>15人</Tag>
          <div>
            <Tag>投影</Tag>
            <Tag>投影</Tag>
            <Tag>投影</Tag>
          </div>
        </div>
        <p>逸家大厦708</p>
      </div>
    </Poptip>

    <div class="speed">
      <!-- <Icon type="play"></Icon> -->
      <!-- {{ data.icon }} -->
      <span
        :type="item"
        v-for="(item, index) in data.icon"
        :key="index"
        style="
          display: inline-block;
          width: 10px;
          height: 10px;
          background: red;
          margin-right: 2px;
        "
      ></span>
      <!-- <div :type="item.icon" v-for="(item, index) in data.icon" :key="index">
        {{ item }} -->
      <!-- </div> -->
    </div>
  </div>
</template>

<script>
export default {
  name: "MeetingLeft",
  props: {
    data: Object,
  },
  created() {
    console.log(this.data);
  },
};
</script>

<style scoped>
/* .poptipCon {
  position: absolute;
  z-index: 100;
} */
.name {
  display: flex;
  box-sizing: border-box;
  overflow: hidden;
  height: 100%;
  width: 100%;
  padding: 0 5px 0 0;
  border-radius: 8px 0 0 8px;
  align-items: center;
}
.colorBar {
  width: 10px;
  height: 100%;
}

.carId {
  flex: 1;
}

.type {
  padding: 0 5px 0 0;
  font-size: 1.2rem;
}
</style>
